using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace MMM.Services.Type
{
    [Serializable]
    [Route("/api/identification", "POST,PUT")]
    public class Identification : EntityBase<Identification>
    {
        /// <summary>
        /// 证件类型
        /// </summary>
        [StringLength(50)]
        [Required]
        public String IdentType { get; set; }
        /// <summary>
        /// 证件编号
        /// </summary>
        [StringLength(50)]
        [Required]
        public String IdentNumber { get; set; }
        /// <summary>
        /// 发证单位
        /// </summary>
        [StringLength(50)]
        [Required]
        public String IdentAuthority { get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        [StringLength(50)]
        public String Period { get; set; }
        /// <summary>
        /// 起始日期
        /// </summary>
        [Required]
        public DateTime StartDate { get; set; }
        /// <summary>
        /// 截止日期
        /// </summary>
        [Required]
        public DateTime EndDate { get; set; }
        /// <summary>
        /// 员工（个人）Id
        /// </summary>
        [Required]
        public Guid EmpId { get; set; }
        /// <summary>
        /// 员工姓名
        /// </summary>
        [StringLength(50)]
        [Required]
        public String EmpName { get; set; }

    }
}
